# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=pass2csv
pkgver=1.1.1
pkgrel=1
pkgdesc="Export pass(1), \"the standard unix password manager\", to CSV"
url="https://github.com/reinefjord/pass2csv"
license="MIT"
arch="noarch"
depends="python3 py3-gnupg"
makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://github.com/reinefjord/pass2csv/archive/v$pkgver/pass2csv-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/pass2csv-$pkgver-py3-none-any.whl
}

sha512sums="
4982f56e98a3935aeb6ef4981188bfcf2b81df3dadce5abaefdc029b30b48e49fe45b96718913d2c96849cdca1220efc0a699255f39d8f91454ce983d3fc37f9  pass2csv-1.1.1.tar.gz
"
